package com.human.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 统一的响应类
 *
 * @author jzq
 * @date 2022/11/7 20:55
 */
@SuppressWarnings({"all"})
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResultVo<U> {

    //是否成功
    private boolean success;

    //提示信息
    private String info;

    //传递的数据
    private Object data;

    public ResultVo(boolean success, String info) {
        this.success = success;
        this.info = info;
    }

}
